<%@ page language="java" import="java.util.*"  pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>邀请码类别</title>
<link rel="stylesheet" href="resources/static/css/pintuer.css">
<link rel="stylesheet" href="resources/static/css/admin.css">
<script src="resources/static/js/jquery.js"></script>
<script src="resources/static/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top" id="add">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 新增邀请码类别</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="invcode/addtypecode">
      <div class="form-group">
        <div class="label">
          <label>类别名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="tpname" data-validate="required:类别名" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>类别码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="tpcode" data-validate="required:类别码" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>使用年限：</label>
        </div>
        <div class="field">
          <select name="uselife" class="input w50" data-validate="required:使用年限">
            <option value=""></option>
            <option value="三个月">三个月</option>
            <option value="一年">一年</option>
            <option value="两年">两年</option>
          </select>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main " type="submit"> 保存</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>